#!bin/bash

FILE="Network.csv"

#Remove previous results
#rm $FILE

#Prepare file for results
echo "Latency :;Throughput :;" >> $FILE

#Compute and put results in the file
for i in `seq 1 $1`;
do
    cd ../../Servers/src/
    java Servers $2 &
    cd -
    sleep 1
    java Main $2 2>> $FILE
done

#Open the csv file with Libre Office
oocalc $FILE
